home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13322 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.programming,comp.sys.sgi.misc,comp.lang.c
  4. Subject: Re: C pointer question.
  5. Date: 5 Apr 96 20:48:18 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.828737298@rscernix>
  8. References: <315BFDBB.773C@wight.hursley.ibm.com> <31616BAF.5BAB@datalytics.com> <3162659B.6201@wight.hursley.ibm.com> <4ju6c5INN2ee@keats.ugrad.cs.ubc.ca> <4k1jti$igm@sun001.spd.dsccc.com>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <4k1jti$igm@sun001.spd.dsccc.com> jmccarty@sun1307.spd.dsccc.com (Mike McCarty) writes:
  13.  
  14. >In article <4ju6c5INN2ee@keats.ugrad.cs.ubc.ca>,
  15. >Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
  16. >)In article <3162659B.6201@wight.hursley.ibm.com>,
  17. >)Max Waterman  <dwater@wight.hursley.ibm.com> wrote:
  18. >)>Ie what are the arguments for :
  19. >)>
  20. >)>char    name1,
  21. >)>    name2,
  22. >)>    name3;
  23. >)>
  24. >)>over :
  25. >)>
  26. >)>char name1;
  27. >)>char name2;
  28. >)>char name3;
  29. >)>
  30. >)>?
  31. >)>
  32. >)>Aren't they identical?
  33. >)>
  34. >)>Any compiler boffs out there know about this?
  35. >)
  36. >)These are identical. But if you put too many declarators onto one declaration
  37.  
  38. >They are not guaranteed to be identical. I haven't seen anything in the
  39. >standard that says that the same program must be produced by these
  40. >differing sources. I have, in fact, used compilers which -did- produce
  41. >different programs depending on such declarations.
  42.  
  43. From the C language point of view, the two versions _are_ identical.
  44.  
  45. The standard doesn't require that the same compiler generates the same
  46. code when processing the same translation unit, so your point is moot.
  47.  
  48. Dan
  49. --
  50. Dan Pop
  51. CERN, CN Division
  52. Email: danpop@mail.cern.ch 
  53. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  54.